<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li ><a href="{:url('Nav/index')}">导航列表管理</a></li>
        <li class="active"><a href="{:url('Nav/add')}">添加导航</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('nav/addPost')}">

        <div class="form-group">
            <label for="photo-1-preview" class="col-sm-2 control-label">
                照片
            </label>
            <div class="col-md-6 col-sm-10">
                <input id="photo-1" type="hidden" name="image" >
                <input id="photo-1-name" type="text"  title="图片名称" readonly disabled>
                <img id="photo-1-preview" style="width: 50px" >
                <a href="javascript:uploadOneImage('图片上传','#photo-1');" class="btn-primary btn">上传</a>
            </div>
        </div>

        <div class="form-group">
            <label for="title" class="col-sm-2 control-label">标题</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="title" name="title">
            </div>
        </div>


        <div class="form-group">
            <label for="url" class="col-sm-2 control-label">url</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="url" name="url">
            </div>
        </div>


        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">添加</button>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
    var editorcontent = new baidu.editor.ui.Editor();
    editorcontent.render('content');
</script>

</body>

</html>